const first = [{
    label: "通用模板",
    path: '/crud',
    component: 'views/util/crud',
    icon: 'icon-caidan',
    meta: {
        i18n: 'crud',
    },
    children: []
}, {
    label: "表格",
    path: '/table',
    component: 'views/util/table',
    icon: 'icon-caidan',
    meta: {
        i18n: 'table',
    },
    children: []
}, {
    label: "表单",
    path: '/form',
    component: 'views/util/form',
    icon: 'icon-caidan',
    meta: {
        i18n: 'form'
    },
    children: []
}, {
    label: "异常页",
    path: '/error',
    meta: {
        i18n: 'error',
    },
    icon: 'icon-caidan',
    children: [{
        label: "error403",
        path: 'error',
        component: 'components/error-page/403',
        icon: 'icon-caidan',

        children: []
    }, {
        label: "error404",
        path: '404',
        component: 'components/error-page/404',
        icon: 'icon-caidan',
        children: []
    }, {
        label: "error500",
        path: '500',
        component: 'components/error-page/500',
        icon: 'icon-caidan',
        children: []
    }]
}]
let menu = [first];
export default [{
    url: "/user/getMenu",
    method: "get",
    response: ({query}) => {
        return {
            data: menu[query.type || 0] || []
        }
    }
}]